<%-- 
    Document   : consultarColegiado
    Created on : 16/08/2010, 09:59:27 AM
    Author     : WILLIAM
--%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<script language="javascript" src="/colegiatura/js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr><td height="30" align="left" class="texto3">
           <h:outputLabel value="Consulta de Colegiado en Consejo Nacional" />
       </td>
     </tr>
     <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
  <h:panelGroup rendered="#{colegiadoExternoController.ws==false}">
  <tr><td align="left" ><fieldset><legend>Buscar por CIP</legend>
     <table width="712" border="0">
     <tr><td width="120" height="25"  align="left"></td>
	 <td width="150" height="28" align="left">
        <h:outputLabel value="Nro CIP :" styleClass="texto20" /></td>
        <td colspan="2" align="left">
            <h:inputText value="#{colegiadoExternoController.cip}" styleClass="fondo012"  size="30" />
            <h:commandButton action="#{colegiadoExternoController.buscarColegiadoCNxCIP}" value="Buscar" styleClass="enlace9" />            </td>
        <td width="190"  align="left"></td>
       </tr>
     </table>
     </fieldset>
     </td></tr>
  <tr><td align="left">
     <fieldset><legend>Buscar por Apellidos</legend>
         <table width="712" border="0">
         <tr><td width="120" height="25" align="left"></td>
		 <td width="150" height="28" align="left">
           <h:outputLabel value="Apellido Paterno: " styleClass="texto20" /></td>
            <td colspan="2" align="left">
                <h:inputText value="#{colegiadoExternoController.apepat}" styleClass="fondo012"  size="30" />
           </td>
            <td width="191" align="left"></td>
       </tr>
       <tr><td height="25" align="left"></td>
	   <td width="150" height="28" align="left">
          <h:outputLabel value="Apellido Materno: " styleClass="texto20" /></td>
            <td colspan="2" align="left">
                <h:inputText value="#{colegiadoExternoController.apemat}" styleClass="fondo012"  size="30" />
          </td>
            <td align="left"></td>
       </tr>
       <tr><td height="25" align="left"></td>
	   <td width="150" height="28" align="left">
          <h:outputLabel value="Nombres: " styleClass="texto20" /></td>
            <td colspan="2" align="left">
                <h:inputText value="#{colegiadoExternoController.nombres}" styleClass="fondo012"  size="30" />
                <h:commandButton action="#{colegiadoExternoController.buscarColegiadoCN}" value="Buscar" styleClass="enlace9" /></td>
            <td align="left"></td>
       </tr>
     </table>
     </fieldset>
     </td></tr>
  </h:panelGroup>
  <h:panelGroup rendered="#{colegiadoExternoController.ws==true}">
  <tr><td align="left">
  <fieldset>
      <legend>Datos Colegiado</legend>
      <table width="711" border="0">
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Condición: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_hab}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Fecha Incorp.: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_fech_incorp}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Nro CIP: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_ncip}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Apellido Pat.: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_apePat}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Apellido Mat: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_apeMat}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Nombres: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_Nomb}" styleClass="texto20" /></td>
          </tr>          
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="DNI: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_dni}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Fecha Nac.: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_fech_nac}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Especialidad: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_espec}" styleClass="texto20" /></td>
          </tr>
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="Sede: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_sede}" styleClass="texto20" /></td>
          </tr>          
          <tr>
            <td height="25" align="left"></td>
            <td align="left"><h:outputLabel value="E-mail CIP: " styleClass="texto22" /></td>
            <td align="left"><h:outputLabel value="#{colegiadoExternoController.colegiadoWS.ws_mail_cip}" styleClass="texto20" /></td>
          </tr>
          <tr><td width="120" height="25" align="left"></td>
            <td width="150" align="left"></td>
            <td width="427" align="left"><h:commandButton action="#{colegiadoExternoController.retornar}" value="Retornar" styleClass="enlace9" /></td>
          </tr>
      </table>
  </fieldset>
     </td></tr>
  </h:panelGroup>
    </table>
 </h:form>
</f:view>


